package com.originskyseed.platform.user.service;

import java.util.List;
import java.util.Map;

import com.originskyseed.platform.core.base.BasePage;
import com.originskyseed.platform.user.model.BusinessRelateChannel;
import com.originskyseed.platform.user.model.UserInfo;

/**
 * 业务员关联渠道信息表Service接口类（OSI_BUSINESS_RELATE_CHANNEL）
 *
 * @author WuZhuoXi
 */
public interface IBusinessRelateChannelService {

	/**
	 * 删除记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKey(String id) throws Exception;

	/**
	 * 批量删除记录
	 *
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKeys(List<String> ids) throws Exception;

	/**
	 * 批量假删除
	 *
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int updateDeleteByIds(List<String> ids) throws Exception;

	/**
	 * 插入记录
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insert(BusinessRelateChannel record) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(BusinessRelateChannel record) throws Exception;

	/**
	 * 更新记录
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKey(BusinessRelateChannel record) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(BusinessRelateChannel record) throws Exception;

	/**
	 * 查询记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public BusinessRelateChannel selectByPrimaryKey(String id) throws Exception;

	/**
	 * 查询记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public BusinessRelateChannel selectIsChannelByBusinessId(String id) throws Exception;

	/**
	 * 查询列表
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<BusinessRelateChannel> selectList(BusinessRelateChannel record) throws Exception;

	/**
	 * 分页查询列表
	 *
	 * @param params
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public BasePage<BusinessRelateChannel> selectListByPage(Map<String, Object> params, BasePage<BusinessRelateChannel> page, UserInfo userInfo) throws Exception;

	/**
	 * 导出
	 *
	 * @param params
	 * @param userInfo
	 * @return
	 * @throws Exception
	 */
	public List<BusinessRelateChannel> selectListToExcel(Map<String, Object> params, UserInfo userInfo) throws Exception;

}
